import request from '@/api/request'


const api_name = 'BedURL'

export default {
	//根据Bed_id查询
	selectByBed_id(bed_id){
		return request({
			url: `/${api_name}/selectByBed_id/${bed_id}`,
			method: 'get',
		})
	},


	//根据Bed_id更新
	updateByBed_id(demo){
		return request({
			url: `/${api_name}/updateByBed_id`,
			method: 'post',
			data: demo
		})
	},


	//根据Bed_id删除
	deleteByBed_id(bed_id){
		return request({
			url: `/${api_name}/deleteByBed_id/${bed_id}`,
			method: 'get',
		})
	},




	//insert:(插入)
	insert(demo){
		return request({
			url: `/${api_name}/insert`,
			method: 'post',
			data: demo
		})
	},


	//insertOrUpdate(插入或更新(根据主键或唯一索引更新，主键和唯一索引不会改变))
	insertOrUpdate(demo){
		return request({
			url: `/${api_name}/insertOrUpdate`,
			method: 'post',
			data: demo
		})
	},


	//insertBath:(批量插入)
	insertBatch(list){
		return request({
			url: `/${api_name}/insertBatch`,
			method: 'post',
			data: list
		})
	},


	//insertOrUpdateBatch:(批量插入或更新)
	insertOrUpdateBatch(list){
		return request({
			url: `/${api_name}/insertOrUpdateBatch`,
			method: 'post',
			data: list
		})
	},


	//selectList:(根据参数查询集合)
	selectList(param){
		return request({
			url: `/${api_name}/selectList`,
			method: 'post',
			data: param
		})
	},


	// selectCount:(根据集合查询数量)
	selectCount(param){
		return request({
			url: `/${api_name}/selectCount`,
			method: 'post',
			data: param
		})
	},


}
